import Vue from "vue";
import App from "./App.vue";

import ElementUI from "element-ui";
import { ElementTiptapPlugin } from "element-tiptap";

import "element-ui/lib/theme-chalk/index.css";
// import element-tiptap 样式
import "element-tiptap/lib/index.css";



import VueUeditorWrap from "vue-ueditor-wrap" // ES6 Module
Vue.component('vue-ueditor-wrap', VueUeditorWrap)

import router from './router.js'
import store from './store'

import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)

import Print from 'vue-print-nb'
Vue.use(Print);

// 注册自定义指令
import plugin from './plugin'
Vue.use(plugin)


// import "../public/ueditor/ueditor.parse.min.js";

Vue.use(ElementUI);
Vue.use(ElementTiptapPlugin, {
  lang: "zh",
  // spellcheck: false,
});

import i18n from './i18n/i18n'

import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: '35f23767ebad2b65905c0352b331762d'
})


Vue.config.productionTip = false;

new Vue({
  i18n,
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
